home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{B5805B21-2D86-11D0-ADA6-00400520799C}#1.0#0"; "PVCALCTL.OCX"
- Begin VB.Form CalFrm
- Caption = "Calendar"
- ClientHeight = 1980
- ClientLeft = 2115
- ClientTop = 1395
- ClientWidth = 4335
- LinkTopic = "Form3"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 1980
- ScaleWidth = 4335
- Begin VB.CommandButton Command2
- Caption = "Close"
- Height = 375
- Left = 120
- TabIndex = 7
- Top = 0
- Visible = 0 'False
- Width = 855
- End
- Begin VB.CommandButton Command1
- Caption = "Show Calendar"
- Height = 495
- Left = 2760
- TabIndex = 6
- Top = 240
- Width = 1455
- End
- Begin VB.OptionButton Option5
- Caption = "One Month"
- Height = 255
- Left = 240
- TabIndex = 5
- Top = 1560
- Width = 1215
- End
- Begin VB.OptionButton Option4
- Caption = "Three Months (Vertical)"
- Height = 255
- Left = 240
- TabIndex = 4
- Top = 1200
- Width = 2055
- End
- Begin VB.OptionButton Option3
- Caption = "Three Months (Horizontal)"
- Height = 255
- Left = 240
- TabIndex = 3
- Top = 840
- Width = 2175
- End
- Begin VB.OptionButton Option2
- Caption = "Six Months"
- Height = 255
- Left = 240
- TabIndex = 2
- Top = 480
- Width = 1095
- End
- Begin VB.OptionButton Option1
- Caption = "Full Year"
- Height = 255
- Left = 240
- TabIndex = 1
- Top = 120
- Value = -1 'True
- Width = 1095
- End
- Begin PVCalendarLib.PVCalendar Calendar1
- Height = 7485
- Left = 120
- TabIndex = 0
- Top = 480
- Visible = 0 'False
- Width = 9540
- _Version = 65536
- _ExtentX = 16828
- _ExtentY = 13203
- _StockProps = 228
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Appearance = 1
- Format = 4
- SundayColor = 255
- End
- Begin VB.Label Label1
- Caption = "Double-click a date or select a date and click the Close button."
- Height = 375
- Left = 1080
- TabIndex = 8
- Top = 0
- Visible = 0 'False
- Width = 2295
- End
- Attribute VB_Name = "CalFrm"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Dim TempLeft As Long
- Private Sub Calendar1_DblClick()
- DateFrm.PVDate21.value = Calendar1.value
- Unload CalFrm
- End Sub
- Private Sub Command1_Click()
- If (Option1.value) = True Then
- Rem full year
- Calendar1.Format = 4
- CalFrm.Width = 9900
- CalFrm.Height = 8500
- End If
- If (Option2.value) = True Then
- Rem half year
- Calendar1.Format = 3
- CalFrm.Width = 9900
- CalFrm.Height = 4800
- End If
- If (Option3.value) = True Then
- Rem qtr year (horz)
- Calendar1.Format = 1
- CalFrm.Width = 9900
- CalFrm.Height = 3000
- End If
- If (Option4.value) = True Then
- Rem qtr year (vert)
- Calendar1.Format = 2
- CalFrm.Width = 3500
- CalFrm.Height = 6700
- End If
- If (Option5.value) = True Then
- Rem single month
- Calendar1.Format = 0
- CalFrm.Width = 3500
- CalFrm.Height = 3000
- End If
- Command1.Visible = False
- Option1.Visible = False
- Option2.Visible = False
- Option3.Visible = False
- Option4.Visible = False
- Option5.Visible = False
- Calendar1.Left = TempLeft
- Calendar1.Visible = True
- Command2.Visible = True
- Label1.Visible = True
- End Sub
- Private Sub Command2_Click()
- DateFrm.PVDate21.value = Calendar1.value
- Unload CalFrm
- End Sub
- Private Sub Form_Initialize()
- Calendar1.Format = 0
- Calendar1.value = DateFrm.PVDate21.value
- Command1.Visible = True
- Option1.Visible = True
- Option2.Visible = True
- Option3.Visible = True
- Option4.Visible = True
- Option5.Visible = True
- Calendar1.Visible = False
- Command2.Visible = False
- Label1.Visible = False
- TempLeft = Calendar1.Left
- Calendar1.Left = 20000
- End Sub
- Private Sub Form_Load()
- Calendar1.Format = 0
- Calendar1.value = DateFrm.PVDate21.value
- Command1.Visible = True
- Option1.Visible = True
- Option2.Visible = True
- Option3.Visible = True
- Option4.Visible = True
- Option5.Visible = True
- Calendar1.Visible = False
- Command2.Visible = False
- Label1.Visible = False
- End Sub
-